home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 6557 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  3.4 KB

  1. Path: qualcomm.com!usenet
  2. From: nabbasi@qualcomm.com (Nasser Abbasi)
  3. Newsgroups: comp.lang.basic.visual.misc,comp.lang.pascal.delphi.misc,comp.lang.c++
  4. Subject: Re: Java? Was: "SHOULD I DUMP VISUAL BASIC?"
  5. Date: 9 Feb 1996 11:03:02 GMT
  6. Organization: QUalcomm Inc.
  7. Message-ID: <4ff9l6$epm@qualcomm.com>
  8. References: <4e9g08$3dp@maureen.teleport.com> <Pine.SUN.3.90.960126125658.2477C-100000@menger.eecs.stevens-tech.edu> <sundial.2191.00464727@primenet.com>  <4fe708$8vi@lainet2.lainet.com>
  9. NNTP-Posting-Host: annex-p26.qualcomm.com
  10. X-Newsreader: WinVN 0.90.4
  11.  
  12. >In article <4f90uk$eic@usenet2.interramp.com>, visualware@interramp.com 
  13. >says...
  14. >->In article <mac.318.3115D621@zeus.hsrc.ac.za>, mac@zeus.hsrc.ac.za says...
  15. >->>
  16. >->>Since I can never get into Sun's Java site, perhaps someone could clarify 
  17. >->what 
  18. >->>Java is.. 
  19. >->The most pure hype since...Windoze 4.0.
  20. >->I doubt that Sun's site will have a history of Java:  a language
  21. >->in search of a use.
  22. >->John
  23. >
  24.  
  25. There is plenty of good info on Java on the sun home page.
  26.  
  27. let me ramble few and not probably precise things about Java from 
  28. top of my head: (mostly from reading different articles around over lunch)
  29.  
  30. Java It has similar syntax to C++, but considered to be have avoided some
  31. of C++ weaknesses, Java has GC. there is a white paper on the sun site
  32. that lists all theses things. 
  33.  
  34. There is what is called a Java applet, and there is what is 
  35. called a Java application.
  36.  
  37. A Java applet is downloaded from the server to the client when you use
  38. the Java-aware browser, and click on an area on the screen that 
  39. causes the download to start, the client then tells the server to 
  40. download the applet code, the applet is a stream of what is called 
  41. Java byte code (J-code) , the browser reads this byte code stream 
  42. and interpret it on the fly , and execute it. a Java
  43. applet has more restrictions to it for security reasons, an applet for 
  44. example can not access files on the client machine, and it executes 
  45. entirly inside a virtual machine on the client, there is also some 
  46. encoding that can be somehow inserted to the byte stream by the server
  47. (sort of server-validation-signature) so that the browser can make sure
  48. this is a legal Java byte code to protect against forign viruse 
  49. inserted in the applet.
  50.  
  51. Some people are doing work to also be able to compile the byte code
  52. on the fly to make it more efficient, (compiled code runs faster
  53. than interpreted code) this means once the applet is downloaded to 
  54. the client, as the browser is iterpreting J-code, a backgorund
  55. run time compilation of the code can be in progress (compile in memeory
  56. on the fly), since the code need to be compiled once, and then the 
  57. compiled code can be used over and over by the browser (such as
  58. hot-Java browser) on the client side, resulting in faster execution
  59. of the applet.
  60.  
  61. There is also some work on C++ compilers that will allow Java code to 
  62. be inserted right in the source code of C++, resulting in the ability 
  63. to mix Java and C++ togother !  
  64.  
  65. Java applications however are compiled code, Just like C++ applications,
  66. using a Java compiler, Java application can access the
  67. external environment, such as files, etc..., 
  68.  
  69. The interest in Java is becuase it is platform independent, 
  70. supposed to be ideal for client/server applications.
  71.  
  72. So, there seem to be lots of work into how Java can be used to
  73. build client/server system, how to intergate it into data base
  74. systems on the server, and stuff like that.
  75.  
  76.  
  77. Nasser
  78.